import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/court',
    name: 'court',
    component: Layout,
    redirect: '/court/table',
    meta: { title: { zh_CN: '场地管理', en_US: 'User Center' }, icon: 'dam-4' },
    children: [
      {
        path: 'create',
        name: 'CourtCreate',
        component: () => import('@/pages/court/create/index.vue'),
        meta: { title: { zh_CN: '创建场地', en_US: 'User Center' } },
        hide: true,
      },
      {
        path: 'table',
        name: 'CourtTable',
        component: () => import('@/pages/court/table/index.vue'),
        // meta: { title: { zh_CN: '场地列表', en_US: 'User Center' } },
        meta: { title: { zh_CN: '场地列表', en_US: 'User Center' }, keepAlive: false },
      },
      {
        path: 'update',
        name: 'CourtUpdate',
        component: () => import('@/pages/court/update/index.vue'),
        meta: { title: { zh_CN: '编辑场地', en_US: 'User Edit' } },
        hide: true,
      },
    ],
  },
];
